package com.llg.model.code;

public enum PageCode implements ResultCode {
    PAGE_ERR1(false,13101,"页码必须大于零"),
    PAGE_ERR2(false,13101,"页码不能大于最大页数"),
    SIZE_ERR(false,13102,"页面大小必须大于0");


    private boolean success;
    private int code;
    private String message;

    PageCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }

}
